package com.ruoyi.equ.service.impl;

import com.ruoyi.equ.domain.EquInspection;
import com.ruoyi.equ.mapper.EquInspectionMapper;
import com.ruoyi.equ.service.IEquInspectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 设备送检Service业务层处理
 * 
 * @author luguanqing
 * @date 2020-10-29
 */
@Service
public class EquInspectionServiceImpl implements IEquInspectionService
{
    @Autowired(required = false)
    private EquInspectionMapper equInspectionMapper;

    /**
     * 查询设备送检
     * 
     * @param id 设备送检ID
     * @return 设备送检
     */
    @Override
    public EquInspection selectEquInspectionById(String id)
    {
        return equInspectionMapper.selectEquInspectionById(id);
    }

    /**
     * 查询设备送检列表
     * 
     * @param equInspection 设备送检
     * @return 设备送检
     */
    @Override
    public List<EquInspection> selectEquInspectionList(EquInspection equInspection)
    {
        return equInspectionMapper.selectEquInspectionList(equInspection);
    }

    /**
     * 新增设备送检
     * 
     * @param equInspection 设备送检
     * @return 结果
     */
    @Override
    public int insertEquInspection(EquInspection equInspection)
    {
        return equInspectionMapper.insertEquInspection(equInspection);
    }

    /**
     * 修改设备送检
     * 
     * @param equInspection 设备送检
     * @return 结果
     */
    @Override
    public int updateEquInspection(EquInspection equInspection)
    {
        return equInspectionMapper.updateEquInspection(equInspection);
    }

    /**
     * 批量删除设备送检
     * 
     * @param ids 需要删除的设备送检ID
     * @return 结果
     */
    @Override
    public int deleteEquInspectionByIds(String[] ids)
    {
        return equInspectionMapper.deleteEquInspectionByIds(ids);
    }

    /**
     * 删除设备送检信息
     * 
     * @param id 设备送检ID
     * @return 结果
     */
    @Override
    public int deleteEquInspectionById(String id)
    {
        return equInspectionMapper.deleteEquInspectionById(id);
    }
}
